import Axios from "/@/utils/Axios";

export function getTaskType(data: any): Promise<any> {
    return Axios.get("/backapi/taskTypes", data);
}

export function addTaskType(data: any): Promise<any> {
    return Axios.post("/backapi/taskTypes", data);
}

export function editTaskType(data: any): Promise<any> {
    return Axios.put(`/backapi/taskTypes/${data.id}`, data);
}

export function updateTaskTypeStatus(data: any): Promise<any> {
    return Axios.patch(`/backapi/taskTypes/${data.id}/status`, data);
}
